home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HDA Tech Note #1.cpt / HDA Tech Note #1 / card_5133.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  35 lines

  1. -- card: 5133 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2619
  5. -- name: REPEAT LOOPS
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0001
  11. -- rect: left=37 top=42 right=91 bottom=475
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 8448
  18. -- line height: 16
  19. -- part name: 
  20.  
  21.  
  22. -- part contents for card part 1
  23. ----- text -----
  24. General Design Principles
  25.  
  26. REPEAT LOOPS
  27.  
  28. -- part contents for background part 2
  29. ----- text -----
  30.  
  31. The repeat command is not supported by HyperDA.  But when you need to execute a single statement or even a small statement group repeatedly, you can use the simple expedient of coding the line(s) explicitly the number of times you wish to repeat.  (For an example of this technique, see the previous card.)
  32.  
  33. This approach will only work, of course, if you know in advance how many times the statement(s) need to be executed.  Variables cannot play a role since they are not supported.
  34.  
  35.